package com.gwcloud.coffeeman.common.config;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import com.gwcloud.coffeeman.example.view.Person;

/** 
* @ClassName   : CoffeemanConfig 
* @author      : ganwei 
* @date        : 2020年8月16日 
* @Description : 配置类，用于获取配置文件
*/
@Component
@ConfigurationProperties(prefix = "coffeemanconfig")
public class CoffeemanConfig {
	private String deployconf;
	private Integer number;
	private Boolean isserver;
	private Date startdate;
	
	private Map<String, Object> maps;
	private List<Object> lists;
	private Person person;
	/**
	 * @return the deployconf
	 */
	public String getDeployconf() {
		return deployconf;
	}
	/**
	 * @param deployconf the deployconf to set
	 */
	public void setDeployconf(String deployconf) {
		this.deployconf = deployconf;
	}
	/**
	 * @return the number
	 */
	public Integer getNumber() {
		return number;
	}
	/**
	 * @param number the number to set
	 */
	public void setNumber(Integer number) {
		this.number = number;
	}
	/**
	 * @return the isserver
	 */
	public Boolean getIsserver() {
		return isserver;
	}
	/**
	 * @param isserver the isserver to set
	 */
	public void setIsserver(Boolean isserver) {
		this.isserver = isserver;
	}
	/**
	 * @return the startdate
	 */
	public Date getStartdate() {
		return startdate;
	}
	/**
	 * @param startdate the startdate to set
	 */
	public void setStartdate(Date startdate) {
		this.startdate = startdate;
	}
	/**
	 * @return the maps
	 */
	public Map<String, Object> getMaps() {
		return maps;
	}
	/**
	 * @param maps the maps to set
	 */
	public void setMaps(Map<String, Object> maps) {
		this.maps = maps;
	}
	/**
	 * @return the lists
	 */
	public List<Object> getLists() {
		return lists;
	}
	/**
	 * @param lists the lists to set
	 */
	public void setLists(List<Object> lists) {
		this.lists = lists;
	}
	/**
	 * @return the person
	 */
	public Person getPerson() {
		return person;
	}
	/**
	 * @param person the person to set
	 */
	public void setPerson(Person person) {
		this.person = person;
	}
	@Override
	public String toString() {
		return "CoffeemanConfig [deployconf=" + deployconf + ", number=" + number + ", isserver=" + isserver
				+ ", startdate=" + startdate + ", maps=" + maps + ", lists=" + lists + ", person=" + person + "]";
	}
	
	
}
